#include <People.h>

People::People()
{
}

void People::formatOutput(std::ostream& os,Format& format)
{
	for(vector<PeopleRecord>::size_type index=0;index != people_m.size();++index)
	{
		os<<people_m[index].name<<'\t';
		people_m[index].length.formatOutput(os,format);
		OutputLineTerminal(os,index);
	}
}

void People::OutputLineTerminal(std::ostream& os,vector<PeopleRecord>::size_type index)
{
	if(index != people_m.size()-1)
		os<<'\n';
}

void People::addPeople(const PeopleRecord& people)
{
	people_m.push_back(people);
}
